﻿using UnityEngine;
using System.Collections;

public class OnScreenXP : OnScreenMessage
{
    private int xp;
    public static Vector3 XpGoalPosition = new Vector3(Screen.width / 2, 20, 0);

    public int Xp
    {
        get { return xp; }
        set { xp = value; }
    }

	// Use this for initialization
    protected override void Start()
    {
        base.Start();
        goalPosition = XpGoalPosition;
	}
	
	// Update is called once per frame
    protected override void Update()
    {
        base.Update();
	}

    protected override void printMessage()
    {
        GUI.Label(new Rect(screenPos.x, screenPos.y, 50, 50), Xp + "xp", style);
    }
}
